<template>
    <div style='width: 100%;height: 100%'>
      <div class='okbgk' :style='styleObject'>
        <div class='okcont'></div>
      </div>
      <div class='tips'>
        <p style='text-align: center'>支付成功</p>
      </div>
    </div>
</template>

<script>
    export default {
      name: 'payOk',
      data() {
        return {
          styleObject: {
            'margin-left':'31%'
          }
        }
    },
      mounted() {
        this.getWinWHth()
      },
      methods:{
        getWinWHth(){
          var dwt=document.documentElement.clientWidth  //设备屏幕宽度
          var chazhi=((dwt/2)-60)/dwt*100
          this.styleObject["margin-left"]=chazhi+'%'
        }
      }
    }
</script>

<style scoped>
  .okbgk{
    background-color: #09bb07;
    width: 120px;
    height: 120px;
    margin-top: 90px;
    margin-left: 34%;
    margin-right: 34%;
    border-radius:  50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .okcont{
    width: 60px;
    height: 24px;
    margin-top: -10px;
    margin-left: 12px;
    border-bottom-left-radius:6px;
    border-left: 7px solid white;
    border-bottom:7px solid white;
    transform:rotate(-45deg);
  }
  .tips{
    margin: 20px 0;
    font-size: 20px;
  }
</style>
